class DataManager(object):
    """docstring for DataManager"""
    
    __data = str()
    DSFID = str()
    AFI = str()
    UII = str()
    userMemoryLength = int()
    
    def __init__(self):
        super(DataManager, self).__init__()
    
    def setAllData(self, data):
        """docstring for setAllData"""
        self.__data = data
    
    def updatedData(self, startAddress, writeData):
        """docstring for updatedData"""
        newDataHeader = self.__data[:startAddress]
        newDataBody = writeData
        newDataFooter = self.__data[startAddress + len(writeData):]
        self.__data = newDataHeader + newDataBody + newDataFooter
    
    def isDataNotUpdated(self, data):
        """return type is boolean"""
        if self.__data == data:
            return True
        
        self.__dataClear()
        return False
    
    def showData(self):
        print self.__data
        
        
    def __dataClear(self):
        pass
        